package com.hitales.ma.jvmdemo.base;

public class JITDemo {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        long sum = 0;
        for (long i = 0; i < 1_000_000_000L; i++) {
            sum += i;
        }
        long end = System.currentTimeMillis();
        System.out.println("Sum: " + sum + ", Time: " + (end - start) + "ms");
    }
}
